package com.csweimei.rentmanagementtreasure.http.entity;

import com.csweimei.rentmanagementtreasure.base.AppConfig;
import com.csweimei.rentmanagementtreasure.utils.ValidateUtils;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class EntHomeDailyBean extends BaseResult{
    @SerializedName("data")
    private List<DataDTO> data;

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable {
        @SerializedName("nickname")
        private String nickname;
        @SerializedName("headImg")
        private String headImg;
        @SerializedName("daily")
        private List<DailyDTO> daily;

        public String getTime(){
            return ValidateUtils.getCurDate();
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getHeadImg() {
            return headImg;
        }

        public void setHeadImg(String headImg) {
            this.headImg = headImg;
        }

        public List<DailyDTO> getDaily() {
            return daily;
        }

        public void setDaily(List<DailyDTO> daily) {
            this.daily = daily;
        }

        public static class DailyDTO implements Serializable {
            @SerializedName("id")
            private int id;
            @SerializedName("userid")
            private int userid;
            @SerializedName("text")
            private String text;
            @SerializedName("imgsrc")
            private String imgsrc;
            @SerializedName("addtime")
            private String addtime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getUserid() {
                return userid;
            }

            public void setUserid(int userid) {
                this.userid = userid;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getImgsrc() {
                return imgsrc;
            }

            public void setImgsrc(String imgsrc) {
                this.imgsrc = imgsrc;
            }

            public String getAddtime() {
                return ValidateUtils.getTimeByType(addtime,ValidateUtils.TIME_YMD);
            }

            public void setAddtime(String addtime) {
                this.addtime = addtime;
            }
        }
    }
}
